home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 10 / AACD 10.iso / AACD / Online / SpeakFreely / src / lpc10 / vcomm.ch < prev    next >
Text File  |  2000-05-18  |  1KB  |  44 lines

  1. /*   Voicing coefficient and Linear Discriminant Analysis variables:
  2.  Max number of VDC's and VDC levels
  3. */
  4. #define MAXVDC 10
  5. #define MXVDCL 10
  6.  
  7. /* Actual number of VDC's and levels  */
  8.  
  9. int nvdc, nvdcl=5;
  10.  
  11. /*   Voicing Decision Parameter vector (* denotes zero coefficient):
  12. *
  13. *    * MAXMIN
  14. *      LBE/LBVE
  15. *      ZC
  16. *      RC1
  17. *      QS
  18. *      IVRC2
  19. *      aR_B
  20. *      aR_F
  21. *    * LOG(LBE/LBVE)
  22.  
  23. *   Define 2-D voicing decision coefficient vector according to the voicing
  24. *   parameter order above.  Each row (VDC vector) is optimized for a specific
  25. *   SNR.  The last element of the vector is the constant.
  26.  
  27. *             E    ZC    RC1    Qs   IVRC2  aRb   aRf        c        */
  28.  
  29. float vdc[MAXVDC][MXVDCL]={
  30.            0.,     0.,     0.,      0.,      0., 0., 0., 0., 0., 0., 
  31.     1714.,   874.,   510.,    500.,    500., 0., 0., 0., 0., 0.,
  32.     -110.,   -97.,   -70.,    -10.,      0., 0., 0., 0., 0., 0.,
  33.      334.,   300.,   250.,    200.,      0., 0., 0., 0., 0., 0.,
  34.        -4096., -4096., -4096.,  -4096.,  -4096., 0., 0., 0., 0., 0.,
  35.     -654., -1021., -1270.,  -1300.,  -1300., 0., 0., 0., 0., 0.,
  36.     3752.,  2451.,  2194.,   2000.,   2000., 0., 0., 0., 0., 0.,
  37.     3769.,  2527.,  2491.,   2000.,   2000., 0., 0., 0., 0., 0.,
  38.        0.,     0.,     0.,      0.,      0., 0., 0., 0., 0., 0.,
  39.     1181.,  -500., -1500.,  -2000.,  -2500., 0., 0., 0., 0., 0.,
  40.  
  41. };
  42.  
  43. float vdcl[MXVDCL];
  44.